<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<form class="layui-form layui-form-pane" th:action="@{'/modifyOrder'}">
<div class="layui-form layuimini-form" >
    <div class="layui-form-item">
        <label class="layui-form-label required">orderId</label>
        <div class="layui-input-block">
            <input type="number" name="orderId" readonly="readonly" th:value="${order.orderId}" class="layui-input">
            <tip>订单号是唯一标识，不可修改。</tip>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">买家姓名</label>
        <div class="layui-input-block">
            <input type="text" name="username" th:value="${order.username}" lay-verify="required" lay-reqtext="买家姓名不能为空" class="layui-input">
            <tip>请勿随意修改买家姓名。</tip>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">orderDate</label>
        <div class="layui-input-block">
            <input type="text" name="orderDate" th:value="${order.orderDate}" lay-verify="required" lay-reqtext="订单日期不能为空" class="layui-input">
            <tip>请勿随意订单日期。</tip>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">shipAddress1</label>
        <div class="layui-input-block">
            <input type="text" name="shipAddress1" th:value="${order.shipAddress1}" lay-verify="required" lay-reqtext="地址不能为空" class="layui-input">
            <tip>地址（准确，详细）</tip>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">totalPrice</label>
        <div class="layui-input-block">
            <input type="number" name="totalPrice" th:value="${order.totalPrice}"lay-verify="required" lay-reqtext="订单价格不能为空" class="layui-input">
            <tip>订单价格不要随意修改。</tip>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn layui-btn-normal" lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</div>
<script src="../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
</form>
</body>
</html>